import java.util.Scanner;

/**
   Counts the number of words in a line.
   Input: a string containing the line
   Output: the number of words in the line
*/
public class CountWords
{
   public static void main(String[] args)
   {
      // your work here

      Scanner in = new Scanner(System.in);
      while (in.hasNext())
      {
        public void paintComponent(Graphics g)
   {
      Graphics2D g2 = (Graphics2D) g;
      Rectangle box = new Rectangle (0,0, size, size);
      // your work here - draw all of the boxes in the specified color
      int k=0;
      for(int i = 0; i<high; i++){
         for(int j = 0; j < wide; j++){
            char c = colors.charAt(k);
            Color color = getSquareColor(c);
            g2.setColor(color);
            g2.fillRect(j*size, i*size, size, size);
            k++;
         }
      } // more work here

      }

      // more work here

      System.out.println(count);
   }
}